import { http } from "@/plugins/axios";
import router from "@/plugins/router";
import XEUtils from "xe-utils";
const storage = useStorage();

export default () => {
  // 方法
  const storeConfig = async (data) => {
    return await http.request({
      url: `admin/config`,
      method: "post",
      data,
    });
  };
  const showConfig = async () => {
    return await http.request({
      url: `admin/config`,
      method: "get",
    });
  };

  return {
    storeConfig,
    showConfig,
  };
};
